package com.a.learning_keep.activity.login

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.a.learning_keep.base.BaseActivity
import com.a.learning_keep.databinding.ActivityResetPasswordBinding
import kotlin.concurrent.thread

class ResetPassword : BaseActivity<ActivityResetPasswordBinding>() {
    override fun getBind(): ActivityResetPasswordBinding {
        return ActivityResetPasswordBinding.inflate(layoutInflater)
    }

    override fun initView() {
        binding.outReturnReset.setOnClickListener { finish() }
        binding.okResetBut.setOnClickListener {
            val s1 = binding.passwordReset.text.toString()
            val s2 = binding.password2Reset.text.toString()
            if (s1 != s2) {
                Toast.makeText(context, "两次密码输入不一致！", Toast.LENGTH_SHORT).show()
            }
            thread {

                runOnUiThread {

                    Toast.makeText(context, "xxx", Toast.LENGTH_SHORT).show()
                }
            }
        }

    }

}